package com.example.practicespring.controller;

import cn.dev33.satoken.util.SaResult;

public class BaseController {

    public SaResult delete(boolean delete, String msg) {
        return delete
                ? SaResult.ok(msg + "删除成功！")
                : SaResult.error(msg + "服务器删除失败！");
    }

}
